import request from '../utils/request-new'

interface IAssistance{
  id: number,
  caseId: number,
  modelId: number,
  content: string,
  originalText:  string,
  modelVo: object,
  caseVo: object
}

// 获取指南辅助列表
export const getAssistanceList = (data) => {
  return request<IAssistance[]>({
    url: '/assist/list',
    method: 'GET',
    data
  })
}


// 创建指南辅助
export const createAssistance = (data: {
  /**
   * 案例Id
   */
  caseId: number,
  /**
   * 内容
   */
  content: string,
  /**
   * 指南Id
   */
  modelId: number,
  /**
   * 指南原文
   */
  originalText: string
}) => {
  return request({
    url: `/assist`,
    method: 'POST',
    data
  })
}
